home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / business / pfroi24e.zip / BOXES.DOC < prev    next >
Text File  |  1988-10-08  |  4KB  |  102 lines

  1.  %%47,62,3%%
  2.  
  3.  This is an example of text and "boxes" using the color setting 
  4.  capability of READ & RUN.   
  5.  
  6.    ┌──────────────────────────────────────────┐
  7.    │                                          │
  8.    │   This is an example of a colored box.   │
  9.    │                                          │
  10.    └──────────────────────────────────────────┘
  11.  
  12.  Color parameters are placed in the first line of the file in the 
  13.  format %%47,62,2%%.  Color parameters are computed by from the 
  14.  following table by adding the background value to the foreground 
  15.  (character) value: 
  16.  
  17.      Color        Background     Foreground
  18.   -----------     ----------     ----------
  19.   Black               0              0
  20.   Blue               16              1
  21.   Green              32              2
  22.   Cyan               48              3
  23.   Red                64              4
  24.   Magenta            65              5
  25.   Brown              66              6
  26.   White              67              7
  27.   Gray              N/A              8
  28.   Lt. Blue          N/A              9
  29.   Lt. Green         N/A             10
  30.   Lt. Cyan          N/A             11
  31.   Lt. Red           N/A             12
  32.   Lt. Magenta       N/A             13
  33.   Yellow            N/A             14
  34.   Hi. White         N/A             15
  35.  
  36.  For example, hi-intensity white on green is 32+15 = 47.
  37.  
  38.  Text outside of boxes is displayed using the first color parameter.  
  39.  Text in single-line boxes is displayed using the second color 
  40.  parameter, and text in double-line boxes is displayed using the 
  41.  third parameter.  
  42.  
  43.     ╔═══════════════════════════════════════╗
  44.     ║                                       ║
  45.     ║   Example of double line box.         ║
  46.     ║                                       ║
  47.     ║                                       ║
  48.     ╚═══════════════════════════════════════╝
  49.  
  50.   Boxes can be nested to one level, provided boxes are of different
  51.   line types, i.e. single line box in double line box, or double 
  52.   line box in single line box.
  53.  
  54.      ╔══════════════════════════════════════════════════════╗
  55.      ║                                                      ║
  56.      ║                                                      ║
  57.      ║        ┌──────────────────────────────────┐          ║
  58.      ║        │                                  │          ║
  59.      ║        │   Nested Box                     │          ║
  60.      ║        │                                  │          ║
  61.      ║        └──────────────────────────────────┘          ║
  62.      ║                                                      ║
  63.      ║                                                      ║
  64.      ║            Text outside of single box                ║
  65.      ║                                                      ║
  66.      ║                                                      ║
  67.      ╚══════════════════════════════════════════════════════╝
  68.  
  69.      ╓──────────────────────────────╖    ╒═════════════════════════════╕
  70.      ║                              ║    │                             │
  71.      ║       Multi-part box #1      ║    │       Multi-part box #2     │
  72.      ║                              ║    │                             │
  73.      ╟──────────────────────────────╢    ╞═════════════════════════════╡
  74.      ║  Double-line side - Color   ║    │  Single-line side - color  │
  75.      ╙──────────────────────────────╜    ╘═════════════════════════════╛
  76.  
  77. "Boxes" may be constructed using your text editor using 
  78. the following upper level ASCII characters: 
  79.  
  80.  │  =  179      ║  = 186     ┤  = 180    ╜  = 189    ╟  = 199
  81.      
  82.  ┐  =  191      ╗  = 187     ╡  = 181    ╛  = 190    ╠  = 204
  83.  
  84.  └  =  192      ╝  = 188     ╢  = 182    ┴  = 193    ╙  = 211
  85.  
  86.  ─  =  196      ╚  = 200     ╖  = 183    ┬  = 194    ╘  = 212
  87.  
  88.  ┘  =  217      ╔  = 201     ╕  = 184    ├  = 195    ╒  = 213
  89.  
  90.  ┌  =  218      ═  = 205     ╣  = 185    ╞  = 198    ╓  = 214
  91.  
  92. With many text editors these may be keyed in by 
  93. depressing the "Alt" key and keying in the appropriate 
  94. number from the keypad.  Or box elements may be copied
  95. from here and duplicated in your text file.
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.